package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @Author WEN
 * @Date 2024/6/15 0015
 **/
@Data
@ApiModel("批量完成打款对象")
public class FinishWithdrawVo {
    // 提现单ID，不能为空，至少选择一项
    @NotNull(message = "提现单不能为空，至少选择一项")
    @Size(min = 1, message = "提现单不能为空，至少选择一项")
    @ApiModelProperty(value = "提现单ID", required = true)
    private List<Long> ids;

    // 提现凭证，只有单个提现单时，此字段生效，多个提现单不允许上传凭证
    @ApiModelProperty(value = "提现凭证，只有单个提现单时，此字段生效，多个提现单不允许上传凭证")
    private List<String> paths;

    // 备注，长度限制100个字符
    @Length(max = 100, message = "备注长度限制100个字符")
    @ApiModelProperty(value = "备注")
    private String remark;
}
